<?php
//Sesion start
session_start();

// if we have log in as student then:

if ( $_SESSION['estado'] == "student_login" ) {
//include the header
include("headerstudent.php");

}
else {
// if we haven't log in as student then:

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title></title>
	<meta http-equiv="content-type" content="text/html"; charset="utf-8" />
	<LINK href="estilos.css" rel="stylesheet" type="text/css">
</head>
<body>';

echo "<br /><h1>You need login to visit this site.</h1>";


}

//include the footer
include("footer.php");

?>